<template>
    <div class="cloud-shop">
        <div class="header-box">
            <div class="header-left">
                <div class="back" v-if="pageType == 1">
                    <i class="el-icon-arrow-left" @click="backFun"></i>
                </div>
                <div class="title">云店管理</div>
            </div>
        </div>
        <div class="content-box">
            <div class="app-box">
                <div class="app">
                    <cloudStoreDetails
                        ref="cloudStoreDetails"
                    ></cloudStoreDetails>
                </div>
            </div>
            <!-- 右侧设置表单页面 -->
            <setupForm ref="setupForm" :pageType="pageType"></setupForm>
        </div>
        <!-- 左侧小程序画面 -->
    </div>
</template>

<script>
import setupForm from "@/components/cloudShop/setupForm.vue";
import cloudStoreDetails from "@/components/cloudShop/appCloudShop/cloudStoreDetails.vue";
import goPage from "@/js/GoPage.js";

export default {
    props: [],
    components: { setupForm, cloudStoreDetails },
    computed: {},
    data() {
        return {
            pageType: "1",
        };
    },
    created() {
        this.pageType = this.$geturl().pageType;
        console.log(this.$geturl(), "this.$geturl()");
        uni.setLeftWindowStyle({ width: "0px" });
    },
    mounted() {},
    methods: {
        backFun() {
            goPage.goNavTo(`/pages/cloudStoreList/index`);
        },
    },
};
</script>

<style lang="scss" scoped >
.cloud-shop {
    margin-left: 72px;
    height: 100%;

    .content-box {
        height: calc(100% - 50px);
        display: flex;
    }
    .app-box {
        width: 500px;
        border-right: 1px solid #ececec;
        background: #f2f2f2;
        display: flex;
        justify-content: center;
        align-items: center;
        .app {
            width: 375px;
            height: 755px;
            border: 1px solid #ececec;
        }
    }
    .header-box {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px #e8dcdc solid;
        padding: 0 10px;
        padding-right: 20px;
        display: flex;
        .header-left {
            display: flex;
            .back {
                font-size: 20px;
                margin-right: 10px;
                cursor: pointer;
            }
            .title {
                font-size: 18px;
            }
        }
    }
}
</style>
